package com.ax.base.drugproducer.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class BaseDrugClass {
    /**
     * 药品分类ID
     */
    private Long drugClassId;

    /**
     * 药品分类代码
     */
    private String drugClassCode;

    /**
     * 药品分类名称
     */
    private String drugClassName;

    /**
     * 拼音首字母
     */
    private String firstLetter;

    /**
     * 父级药品分类ID
     */
    private Long parentClassId;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态
     */
    private Integer flag;
    
    private Long menuId;
    private Long parentId;
    private String name;
    private Integer type;
    
    
    public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BaseDrugClass(Long drugClassId, String drugClassCode, String drugClassName, String firstLetter, Long parentClassId, String remarks, Date createDate, Date updateDate, Integer flag) {
        this.drugClassId = drugClassId;
        this.drugClassCode = drugClassCode;
        this.drugClassName = drugClassName;
        this.firstLetter = firstLetter;
        this.parentClassId = parentClassId;
        this.remarks = remarks;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public BaseDrugClass() {
        super();
    }

    public Long getDrugClassId() {
        return drugClassId;
    }

    public void setDrugClassId(Long drugClassId) {
        this.drugClassId = drugClassId;
    }

    public String getDrugClassCode() {
        return drugClassCode;
    }

    public void setDrugClassCode(String drugClassCode) {
        this.drugClassCode = drugClassCode == null ? null : drugClassCode.trim();
    }

    public String getDrugClassName() {
        return drugClassName;
    }

    public void setDrugClassName(String drugClassName) {
        this.drugClassName = drugClassName == null ? null : drugClassName.trim();
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter == null ? null : firstLetter.trim();
    }

    public Long getParentClassId() {
        return parentClassId;
    }

    public void setParentClassId(Long parentClassId) {
        this.parentClassId = parentClassId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}